package com.woniu.search.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author 杨光 微信号:tolryg
 * @time 11:52
 */
@Document(indexName = "actor",type = "actor")
public class ActorSearch {
    private static final long serialVersionUID = 1L;


    @Field( type = FieldType.Text,index = true)
    private String searchText;

    @Id
    @Field(name = "id", type = FieldType.Integer)
    /** 演员id(主键) */
    private Integer actorId;

    /** 演员姓名 */
    @Field( type = FieldType.Keyword,index = false)
    private String actorName;

    /** 演员照片 */
    @Field( type = FieldType.Keyword,index = false)
    private String actorImg;

    /** 演员介绍 */
    @Field( type = FieldType.Keyword,index = false)
    private String actorDesc;

    /** 关注数 */
    @Field( type = FieldType.Integer,index = false)
    private Integer followers;

    /** 累计票房 */
    @Field( type = FieldType.Long,index = false)
    private Long boxOffice;


    public String getSearchText() {
        return searchText;
    }

    public void setSearchText(String searchText) {
        this.searchText = searchText;
    }
    public Integer getActorId() {
        return actorId;
    }

    public void setActorId(Integer actorId) {
        this.actorId = actorId;
    }

    public String getActorName() {
        return actorName;
    }

    public void setActorName(String actorName) {
        this.actorName = actorName;
    }

    public String getActorImg() {
        return actorImg;
    }

    public void setActorImg(String actorImg) {
        this.actorImg = actorImg;
    }

    public String getActorDesc() {
        return actorDesc;
    }

    public void setActorDesc(String actorDesc) {
        this.actorDesc = actorDesc;
    }

    public Integer getFollowers() {
        return followers;
    }

    public void setFollowers(Integer followers) {
        this.followers = followers;
    }

    public Long getBoxOffice() {
        return boxOffice;
    }

    public void setBoxOffice(Long boxOffice) {
        this.boxOffice = boxOffice;
    }

    @Override
    public String toString() {
        return "ActorSearch{" +
                "searchText='" + searchText + '\'' +
                ", actorId=" + actorId +
                ", actorName='" + actorName + '\'' +
                ", actorImg='" + actorImg + '\'' +
                ", actorDesc='" + actorDesc + '\'' +
                ", followers=" + followers +
                ", boxOffice=" + boxOffice +
                '}';
    }
}
